profiler: Add _end_mark() version of _add_mark()
authorAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 10:25:34 +0000 (11:25 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 12 Feb 2020 10:25:34 +0000 (11:25 +0100)
commit2890cd849fd7d8e0cd73ed09a6bf0494dbafc8d5
treedbd438906d5fbacce22f1d13ecb1ffb908d5a686
parent01d5ad2056f9c896246219eb04ca1ae807a45768
profiler: Add _end_mark() version of _add_mark()

These don't take a duration, instead they call g_get_monotonic_time() to
and subtract the start time for it.

Almost all our calls are like this, and this makes the callsites clearer
and avoids inlining the clock call into the call site.
13 files changed:
gdk/gdkframeclock.c
gdk/gdkframeclockidle.c
gdk/gdkprofiler.c
gdk/gdkprofilerprivate.h
gdk/wayland/gdkdisplay-wayland.c
gsk/gl/gskglrenderer.c
gtk/gtkapplication.c
gtk/gtkbuilderparser.c
gtk/gtkcssprovider.c
gtk/gtkemojichooser.c
gtk/gtkicontheme.c
gtk/gtkwidget.c
gtk/gtkwindow.c